home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / tex-k / tex-k-archive.past / tex-k-archive.gz / tex-k-archive / 000013_andreas@ibm-1.…Garching.MPG.DE_Thu Sep 30 17:37:55 1993.msg < prev    next >
Internet Message Format  |  1994-10-11  |  1KB

  1. Received: from ibm-1.mpa-garching.mpg.de by cs.umb.edu with SMTP id AA24364
  2.   (5.65c/IDA-1.4.4 for <tex-k@cs.umb.edu>); Thu, 30 Sep 1993 11:39:58 -0400
  3. Received: by ibm-1.MPA-Garching.MPG.DE (5.67/1.37)
  4.     id AA28027; Thu, 30 Sep 93 16:37:55 +0100
  5. Date: Thu, 30 Sep 93 16:37:55 +0100
  6. From: andreas@ibm-1.MPA-Garching.MPG.DE (Andreas Schott)
  7. Message-Id: <9309301537.AA28027@ibm-1.MPA-Garching.MPG.DE>
  8. To: tex-k@cs.umb.edu
  9. Subject: include in Makefiles
  10. Reply-To: andreas@mpa-garching.mpg.de (Andreas Schott)
  11.  
  12. Hi Karl,
  13.  
  14. in your toplevel-Makefile you ask for a better way to
  15. transfer all the variables to the sub-Makefiles. Why
  16. not using the `include'-feature. At least for sun, ibmr,
  17. sgi and cray this works. Here an example:
  18.  
  19. ==========================================
  20. # This is the file `settings'
  21. test_set = 'this variable is set now'
  22. ==========================================
  23. # This is the file `Makefile'
  24. include ./settings
  25.  
  26. all:
  27.     echo $(test_set)
  28. ===========================================
  29.  
  30. You need to preceed the include-call to the
  31. `settings'-file with $(srcdir), instead of
  32. using `.', but you can transfer this as
  33. variable or do it through configure.
  34.  
  35. This would have the big advantage, that I really have
  36. to edit exactly one file, namely the `settings' and
  37. everything should work.
  38.  
  39. Andreas.